home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Popular Request
/
By Popular Request (Arsenal Computer)(SysOptics Distribution System).ISO
/
amiga2
/
emenu12.lha
/
EditMenu.rexx
next >
Wrap
OS/2 REXX Batch file
|
1993-11-13
|
5KB
|
155 lines
/*
Presents users with a hot-keyed menu that allows quick/easy editing
of ALL their user-settings from one location:
> --- Edit Menu ---
>
> [T]erm settings (Computer, width, height, color, graphics)
> [P]references (Editor, macros, signatures, protocol)
> [U]ser account (Address, city, state, phone)
> [F]ile (Formatted public and private files about you)
> Pass[W]ord (Change your password)
> [.]plan (Free-formatted text file about you.)
> [H]elp (?)
> [A]ccount (Other's)
> [G]roup levels (0-31)
> [D]ata file (Any)
Choices "A" "G" "D" will only appear if you are online under acct #1.
Choice "." will allow users to edit a text-file about themselves.
(Without touching their public or private finger-questionairre files.)
Installation:
1) c:Copy EditMenu.rexx TO pfiles:rexx/EditMenu.rexx
2) c:Copy Plan.rexx TO pfiles:rexx/Plan.rexx
3) Edit CNet:BBSmenu adding the following 2 lines onto the
END of the list marked "2; Available everywhere":
> EDIt | {#0 Pfiles:Rexx/EditMenu.rexx}
> PLan | {#0 Pfiles:Rexx/Plan.rexx}
4) Edit CNet:BBSmenu adding the following 1 line onto the
TOP of the list marked "2; Available everywhere":
> E.~EDIT;.
Use EditMenu.rexx (this file) to allow users to CREATE their own .plan files.
Use Plan.rexx to allow users to DISPLAY other user's ".plan" files.
Pfiles:rexx/EditMenu.rexx by
Bill Beogelein
Box 530441
Livonia, MI 48153
BBS 810-473-2020, Fido 1:2410/207
$VER: EditMenu.rexx v1.2 Fri 12-Nov-93 22:54:23
Added PASSWORD-edit powers.
Tested under CNet v2.94-beta.
$VER: EditMenu.rexx v1.1 Sun 08-Aug-93 04:29:53
First release.
Better detection of "SysOps".
Added .plan editor
$VER: EditMenu.rexx v1.0 22-Sep-92 03:23:11
Test version
Ignore:
lz u CNet3:EditMenu.LHA Pfiles:Rexx/EditMenu.rexx Pfiles:Rexx/Plan.rexx a:zzzBBSad
Copy CNet3:EditMenu.LHA UP:
*/
options results
/* Start of SysOp-settable variables */
maxLines=40 /* Max # of lines of user's ".plan" file (Default=40) (0=none) */
/* End of SysOp-settable variables */
YES = (1==1)
NO = (0==1)
'getuser' 39; home = RESULT
'getuser' 40; acct = RESULT
'getuser' 41; id = RESULT
'getuser' 1; handle = RESULT
If(acct==1 & id==1) then SysOp=YES; else SysOp=NO
do forever
'transmit' "n1 >9 >9 --- Edit Menu --- n1"
'transmit' " [T]erm settings (Computer, width, height, color, graphics)"
'transmit' " [P]references (Editor, macros, signatures, protocol)"
'transmit' " [U]ser account (Address, city, state, phone)"
'transmit' " [F]ile (Formatted public and private files about you)"
'transmit' " Pass[W]ord (Change your password)"
if(maxLines>0) then
'transmit' " [.]plan (Free-formatted text file about you.)"
'transmit' " [H]elp"
if(SysOp) then
do
'transmit' " [A]ccount (Other's)"
'transmit' " [G]roup levels (0-31)"
'transmit' " [D]ata file (Any)"
end
'sendString' "n1 Choice: "
'getchar'
ch=upper(RESULT)
if(ch='Q' | hash(ch)=13 | hash(ch)=27) then /* [Q]uit or [RETURN] or [ESC] */
do
'transmit' "Q"
exit
end
'transmit' ch
if(ch='T') then 'bbsCommand' "ET"
if(ch='P') then 'bbsCommand' "EP"
if(ch='U') then 'bbsCommand' "EU"
if(ch='F') then 'bbsCommand' "EF"
if(ch='W') then 'bbsCommand' "PW"
if(ch='H' | ch='?' | ch='/') then
do
'transmit' "n2In addition to using `EDIT' to access this menu,"
'transmit' "you can also use `ET' `EP' `EU' `EF' `PW' `E.', respectively,"
'transmit' "to jump directly to that particular menu."
'transmit' "(All are available from any '>' menu-prompt system-wide.)"
end
if(maxLines>0 & ch='.') then
do
'transmit' "n3You are about to be placed into the editor.n1"
'sendString' "You will be allowed to write a short" maxLines || "-line public text-"
'sendString' "file about yourself that others will be allowed to view by using the "
'sendString' "command: PLAN" handle
'query' "n2Hit [RETURN] to continue "
fname="Mail:Users/" || home || "/.plan"
'loadEditor' fname
'callEditor' maxLines
'saveEditor' fname
end
if(SysOp) then
do
if(ch='A') then 'bbsCommand' "EA"
if(ch='G') then
do /* Why doesn't CNet have this prompt for "EG"??? */
'query' "n1 Edit which group 0-31: "
'bbscommand' "EG" RESULT
end
if(ch='D') then 'bbsCommand' "WF"
end
end
exit
/* EOF Pfiles:Rexx/EditMenu.rexx (c)1993 810-473-2020 BBS */